package com.osstem.hanarolab.relay.model;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.springframework.stereotype.Component;

/**
 * 전문 dto 클래스
 * 
 * @author 오스템임플란트 jw
 * @since 2012. 10. 4.
 * @version 1.0
 * @see
 * 
 * <pre>
 * << 개정이력(Modification Information) >>
 *   
 *	  수정일  		수정자				수정내용		
 *	----------		------		------------------------
 *	2012. 10. 4.    jw				최초 생성
 *
 * </pre>
 */
@Component("PlainTextDto")
public class PlainTextDto {
	
	private String	HeaderLength;		//헤더길이
	private String	req_no;				//의로서번호
	private String	req_user_gb;		//전송주체(1:치과 2:기공서 3:서버)
	private String	req_user_cd;		//치과코드
	private String	rcv_user_cd;		//기공소코드
	private String	password;			//패스워드
	private String	cmd;				//명령(명령코드)
	private String	st_cd;				//상태
	private String	send_dt;			//전송일시
	private String	req_tot_len;		//데이터 총길이
	private String	req_len;			//의뢰서길이
	private String	pic_len;			//사진파일길이
	private byte[]	req_data;			//의뢰서 데이터(base64)
	private byte[]	pic_data;			//사진 데이터(base64)
	
	public String getHeaderLength() {
		return HeaderLength == null ? "" : HeaderLength;
	}
	public void setHeaderLength(String headerLength) {
		HeaderLength = headerLength;
	}
	public String getReq_no() {
		return req_no == null ? "" : req_no;
	}
	public void setReq_no(String req_no) {
		this.req_no = req_no;
	}
	public String getReq_user_gb() {
		return req_user_gb == null ? "" : req_user_gb;
	}
	public void setReq_user_gb(String req_user_gb) {
		this.req_user_gb = req_user_gb;
	}
	public String getReq_user_cd() {
		return req_user_cd == null ? "" : req_user_cd;
	}
	public void setReq_user_cd(String req_user_cd) {
		this.req_user_cd = req_user_cd;
	}
	public String getRcv_user_cd() {
		return rcv_user_cd == null ? "" : rcv_user_cd;
	}
	public void setRcv_user_cd(String rcv_user_cd) {
		this.rcv_user_cd = rcv_user_cd;
	}
	public String getPassword() {
		return password == null ? "" : password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getCmd() {
		return cmd == null ? "" : cmd;
	}
	public void setCmd(String cmd) {
		this.cmd = cmd;
	}
	public String getSt_cd() {
		return st_cd == null ? "" : st_cd;
	}
	public void setSt_cd(String st_cd) {
		this.st_cd = st_cd;
	}
	public String getSend_dt() {
		return send_dt == null ? "" : send_dt;
	}
	public void setSend_dt(String send_dt) {
		this.send_dt = send_dt;
	}
	public String getReq_tot_len() {
		return req_tot_len == null ? "" : req_tot_len;
	}
	public void setReq_tot_len(String req_tot_len) {
		this.req_tot_len = req_tot_len;
	}
	public String getReq_len() {
		return req_len == null ? "" : req_len;
	}
	public void setReq_len(String req_len) {
		this.req_len = req_len;
	}
	public String getPic_len() {
		return pic_len == null ? "" : pic_len;
	}
	public void setPic_len(String pic_len) {
		this.pic_len = pic_len;
	}
	public byte[] getReq_data() {
		return req_data;
	}
	public void setReq_data(byte[] req_data) {
		this.req_data = req_data;
	}
	public byte[] getPic_data() {
		return pic_data;
	}
	public void setPic_data(byte[] pic_data) {
		this.pic_data = pic_data;
	}
	public String toString(){
		return ToStringBuilder.reflectionToString(this,ToStringStyle.SHORT_PREFIX_STYLE);
	}
}